package com.star.message.api;

import com.star.common.core.contract.Page;
import com.star.common.core.contract.R;
import com.star.common.sms.contract.query.SmsSignPageQuery;
import com.star.common.sms.contract.vo.SmsSignPageVO;
import com.star.message.biz.SmsSignBizService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 短信签名
 *
 * @author zhouhengzhe
 * @version 1.0
 * @date 2024/1/23 18:26
 */
@RestController
@RequiredArgsConstructor
@Tag(name = "短信签名", description = "短信签名")
@RequestMapping("/message/sms/sign")
public class SmsSignController {

    private final SmsSignBizService smsSignBizService;

    @PostMapping("pageSmsSign")
    @Operation(summary = "分页查询短信签名")
    public R<Page<SmsSignPageVO>> pageSmsSign(@RequestBody  SmsSignPageQuery smsSignPageQuery) {
        return R.ok(smsSignBizService.pageSmsSign(smsSignPageQuery));
    }


}
